/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.client.core.view;

import javax.swing.*;

/**
 * Created by Peter on 2016/9/2.
 */
public abstract class AbstractPanel extends JPanel {

    /**
     * Init data.
     * 1. call initDataSource
     * 2. call initView
     */
    public void initData() {
        initDataSource();
        initView();
    }

    /**
     * Init data source.
     */
    public abstract void initDataSource();

    /**
     * Init ui view panel.
     */
    public abstract void initView();

    /**
     * Init components.
     */
    public abstract void initComponents();

}
